#ifndef MODULEACCUEIL_H
#define MODULEACCUEIL_H

#include <QObject>
#include <QList>
#include <QStringList>
#include <QColor>
#include <QSettings>

#include "statistiques.h"
#include "pg.h"

class ModuleAccueil : public QObject
{
    Q_OBJECT
public:

    enum Attribut
    {
        NO_ATTRIBUTES = 0x0,
        BOLD = 0x1,
        ITALIC = 0x2,
        UNDERLIGNE = 0x4
    };
    Q_DECLARE_FLAGS(Attributs,Attribut)

    explicit ModuleAccueil(QObject *parent = 0);

    static QStringList modules();


    static QString toHtml(QString module, Pg *pg=NULL);

signals:
    
public slots:

private:
    static void initModules();
    static QString createSpan(QString text, QColor couleur = QColor(Qt::black), int size = 11, Attributs attr = NO_ATTRIBUTES);



    
};

Q_DECLARE_OPERATORS_FOR_FLAGS(ModuleAccueil::Attributs)

#endif // MODULEACCUEIL_H
